package com.vgemv.jsutilitysdk.Menu.JsMenuView;

import android.graphics.Color;
import android.view.ViewGroup;

//类属性统一命名
public class JsMenuItemStyleDefault extends  JsMenuItemStyle{

    private static JsMenuItemStyleDefault _sharedInstance = null;

    public Integer mI_titleTextColor = Color.argb(255,0,0,0);
    public Integer mI_detailTextColor = Color.argb(255,0,0,0);

    public Integer mI_borderWidth = 0;
    //ItemView的背景颜色
    public Integer mI_boerderColor = Color.argb(255,0,0,0);

    public int mi_titleFontSize = 20;
    public int mi_detailFontSize = 15;


    public static JsMenuItemStyleDefault sharedInstance() {
        if(_sharedInstance == null) {
            _sharedInstance = new JsMenuItemStyleDefault();
            _sharedInstance.mi_width = ViewGroup.LayoutParams.MATCH_PARENT;
        }
        return _sharedInstance;
    }


    public JsMenuItemStyleDefault copy() {
        JsMenuItemStyleDefault style = new JsMenuItemStyleDefault();
        //TODO: 这里可以用反射处理
        style.mI_detailTextColor = mI_detailTextColor;
        style.mI_titleTextColor = mI_titleTextColor;
        style.mi_cornerRadius = mi_cornerRadius;
        style.mI_borderWidth = mI_borderWidth;
        style.mI_boerderColor = mI_boerderColor;
        style.mi_width = mi_width;
        style.mi_height = mi_height;
        style.mi_titleFontSize = mi_titleFontSize;
        style.mi_detailFontSize = mi_detailFontSize;
        return style;
    }
}

